.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.app-header {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 2rem;
}

.app-header h1 {
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
}

.app-header p {
  color: #6c757d;
  margin: 0;
  font-size: 1.1rem;
}

.navigation {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navigation h2 {
  margin-top: 0;
  color: #495057;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.navigation li {
  background-color: #e9ecef;
  padding: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  border-left: 4px solid #6c757d;
}

.navigation li:hover {
  background-color: #dee2e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-left-color: #007bff;
}

.navigation a {
  text-decoration: none;
  color: #495057;
  font-weight: 500;
  display: block;
}

.navigation a:hover {
  color: #007bff;
}

.main-content {
  flex: 1;
  margin-bottom: 2rem;
}

.app-footer {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #e9ecef;
  color: #6c757d;
  margin-top: auto;
}

/* 首页样式 */
.home {
  max-width: 800px;
  margin: 0 auto;
}

.home h2 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 1rem;
}

.home p {
  text-align: center;
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.intro-section, .tips-section {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.intro-section h3, .tips-section h3 {
  color: #495057;
  margin-top: 0;
  margin-bottom: 1rem;
}

.intro-section ol {
  padding-left: 1.5rem;
}

.intro-section li, .tips-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.tips-section ul {
  padding-left: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .app {
    padding: 0 10px;
  }
  
  .app-header h1 {
    font-size: 2rem;
  }
  
  .navigation ul {
    grid-template-columns: 1fr;
  }
  
  .intro-section, .tips-section {
    padding: 1.5rem;
  }
}

/* 示例页面通用样式 */
.example-page {
  max-width: 1000px;
  margin: 0 auto;
}

.example-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e9ecef;
}

.example-header h1 {
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
}

.example-header p {
  color: #6c757d;
  margin: 0;
  font-size: 1.1rem;
}

.example-section {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.example-section h2 {
  color: #495057;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #007bff;
}

.example-section h3 {
  color: #6c757d;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.demo-container {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.demo-title {
  font-weight: bold;
  margin-bottom: 1rem;
  color: #495057;
}

.code-block {
  background-color: #f1f3f4;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

.note {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
  color: #856404;
}

.tip {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
  color: #0c5460;
}

.warning {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
  color: #721c24;
}